<?php if (isset($this->categories) && count($this->categories) > 0) {

    foreach ($this->categories as $category) { ?>

        <a name="<?php echo $category['name']; ?>"></a>
        <h2><a href="/categorias/categoria/id/<?php echo $category['categoryid']; ?>/" title="<?php echo $category['name']; ?>"><?php echo $category['name']; ?></a></h2>

        <p class="post-info"> | Categoría Padre:   <?php if ($category['parentid'] != null){ ?> <a href="/categorias/categoria/id/<?php echo $category['parentid']; ?>"><?php echo $category['parentname']; } ?>  </a></p>

        <!-- BEGIN Pagination -->
<?php
    }


    if (isset($this->paginator)) echo $this->partial ('partials/pagination.phtml', 'default', array ('paginator' => $this->paginator, 'url' => $this->urlPagination));

} else {
 ?>

    <a name="Error"></a>
    <h2><?php echo $this->error; ?></h2>

    <p>Intente mas tarde...</p>

<?php } ?>

